How to get the string outside two markers using python regular experssions